Release 10.1A: OpenEdge Development:
Progress Dynamics Advanced Development


Coding the rowDisplay procedure

Next, you must code the rowDisplay procedure where your custom logic is written. This corresponds to the rowDisplay procedure in the viewer custom super procedure. The name of this procedure is significant because, as described earlier, the standard browser code automatically defines this internal procedure as the event procedure for the ROW-DISPLAY event when the ScrollRemote property is set on.

There is a small amount of standard browser code for rowDisplay, so it must first RUN SUPER. Then it can contain exactly the same statements as a corresponding viewer. You will create equivalent support functions to make this work properly, as shown:

PROCEDURE rowDisplay: 
/*------------------------------------------------------------------------- 
  Purpose:    This procedure holds any custom client-side display logic 
              for the Browser.  
  Parameters:  <none> 
  Notes:        
-------------------------------------------------------------------------*/ 
  RUN SUPER. 
   
  IF DECIMAL (widgetValue('CreditLimit')) - DECIMAL (widgetValue('Balance')) 
                   LT 5000 THEN 
    highlightWidget('Balance'). 
   
END PROCEDURE. 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095